package com.beta.platform.rest.auth;

/**
 * @author gwqin
 * @description 内容分享时签名的用户信息（分享者）
 * @date 2023-07-10 19:00
 */
public class SignetSecurity {

    private static final ThreadLocal<Signet> SIGNET = new ThreadLocal<>();


    private SignetSecurity(){}

    public static Signet getSignet() {
        return SIGNET.get();
    }

    public static void setSignet(Signet signet) {
        SIGNET.set(signet);
    }

    public static void clean() {
        SIGNET.remove();
    }
}
